package tPerson.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tPerson.mapper.TPersonMapper;
import tPerson.entity.TPerson;
import tPerson.service.TPersonService;

import java.util.List;

@Service
public class TPersonServiceImpl implements TPersonService {

    @Autowired
    private TPersonMapper tPersonMapper;

    @Override
    public int insert(TPerson tPerson) {
        return tPersonMapper.insert(tPerson);
    }

    @Override
    public int delete(String personID) {
        return tPersonMapper.delete(personID);
    }

    @Override
    public int update(TPerson tPerson) { return tPersonMapper.update(tPerson); }

    @Override
    public TPerson getOne(String personID) {
        return tPersonMapper.getOne(personID);
    }

    @Override
    public List<TPerson> getList(TPerson tPerson) {
        return tPersonMapper.getList(tPerson);
    }
}
